package day12_thread_code.com.itheima.d1_thread_create;

public class Demo1_Thread {
    public static void main(String[] args) {
        MyThread t = new MyThread();
        t.start();
        for (int i = 0; i < 4; i++) {
            System.out.println("主线程输出：" + i);
        }
    }

}
class MyThread extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 4; i++) {
            System.out.println("子线程输出：" + i);
        }
    }
}